﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Ex9.ExtractPossitiveIntegers
{
    class ExtractPossitiveIntegers
    {
        static void ExtractPossIntegers(string text)
        {
            string expression = @"\D+";
            string[] numbers = Regex.Split(text, expression);
            foreach (string number in numbers)
            {
                Console.WriteLine(number);
            }
        }
        static void Main(string[] args)
        {
            string text = "dfgfg 32 sdfdsfd1234 dsfdfg323 gfddf1231sdfsad 22 -1245 2.455";
            ExtractPossIntegers(text);
        }
    }
}
